package com.ase.springsecurity.service;

import com.ase.springsecurity.entity.mongodb.UserMongoDB;

import java.util.List;

/**
 * @author gyhstart
 * @create 2020/12/27 - 11:15
 **/
public interface UserMongoDBService {
    /**
     * MongoDB 增加
     * @param userMongoDB
     */
    int saveMongoDB (UserMongoDB userMongoDB);

    /**
     * MongoDB 删除
     * @param id
     */
    void removeMongoDB (int id);

    /**
     * MongoDB 修改
     * @param userMongoDB
     */
    void updateMongoDB (UserMongoDB userMongoDB);

    /**
     * MongoDB 查询
     * @return
     */
    List<UserMongoDB> findMongoDB();
}
